//
//  QDScreenShotAlertView.h
//  QDMetroClient
//
//  Created by YueWen on 2019/1/2.
//  Copyright © 2019 YueWen. All rights reserved.
//

#import "NWPopWindow.h"

NS_ASSUME_NONNULL_BEGIN

@class QDScreenShotAlertView;

@protocol QDScreenShotAlertViewDelegate <NWPopWindowDelegate>

/// 我知道了按钮点击之后/消失的回调
- (void)qdScreenShotAlertViewWillDismiss:(QDScreenShotAlertView *)view;

@end

/// 截图时弹出的alert提示View
@interface QDScreenShotAlertView : NWPopWindow

/// 代理对象
@property (nonatomic, weak, nullable) id<QDScreenShotAlertViewDelegate>delegate;
/// 白色底的容器
@property (nonatomic, strong) UIView *containerView;
/// 标题的label: 截图提醒
@property (nonatomic, strong) UILabel *titleLabel;
/// 提示内容的label: 地铁乘车...
@property (nonatomic, strong) UILabel *textLabel;
/// 确认按钮
@property (nonatomic, strong) UIButton *tureButton;
/// 展示的标题
@property (nonatomic, copy) NSString *title;

/// 展示并成为代理，消失的时候默认置delegate为nil
+ (void)showAndBecomeDelegate:(id<QDScreenShotAlertViewDelegate>)delegate title:(nullable NSString *)title;

@end

NS_ASSUME_NONNULL_END
